package com.speed_run.utils;



import com.speed_run.sms.SmsSingleSender;

import java.util.ArrayList;

public class SmsSenderUtil {

    private static final int appId = 1400045262;

    private static final String appKey = "b66775c88ccecd3304801ff527418efb";

    private static  final int temlId = 66633;

    public static void  sendSmsCode(String telephone, String code) throws Exception {
        SmsSingleSender singleSender = new SmsSingleSender(appId, appKey);
        ArrayList<String> params = new ArrayList<>();
        params.add(code);
        params.add("3");
        singleSender.sendWithParam("86", telephone, temlId, params, "", "", "");
    }

    public static void main(String[] args) {
        System.out.println((int)((Math.random()*9+1)*1000));
    }
}
